package com.ecnu.system.mapper;

import com.ecnu.system.domain.ProjectResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ecnu.system.domain.dto.ProjectListDTO;
import com.ecnu.system.domain.vo.ProjectListVO;
import com.ecnu.system.domain.vo.ProjectResultByUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * ecnu_活动_成果表 Mapper 接口
 * </p>
 *
 * @author zdn
 * @since 2025-03-24
 */
@Mapper
public interface ProjectResultMapper extends BaseMapper<ProjectResult> {

    List<ProjectListVO> getListForExcellent(@Param("dto") ProjectListDTO dto);

    void updateByStage(@Param("proResult")ProjectResult proResult);

    List<ProjectResultByUserVO> selectListByUserOrTeacher(@Param("id")String id,
                                                          @Param("proId")String proId,
                                                          @Param("userId")Long userId,
                                                          @Param("teacherName")String teacherName);
}
